$def with (image=None, cog=None, error=None, path=None, show_upload=True)
<h1>Family Recruit</h1>
<hr>
$if error:
  <div class="error">$error</div>
$if cog:
  <div id="cog_file_container">
  <h3>Your Data Files:</h3>
  <form>
  <select name = "data_file" MULTIPLE size="20" style="width:250px;">
  $for i in cog:
    <option>$i</option>
  </select>
  $if show_upload:
    <br/>
    <input type="button" value="Upload a file" onClick="location.href='$path/upload/'">
  <br/>
  <input type="submit" name="rm" value="Remove files">
  <br/>
  <input type="submit" name="fc" value="Draw Function Category">
  </form>
  </div>
  <div id="big_container">
  <table border="0">
  <form>
  <tr>
  $for i in cog:
    <td>
    <input type="text" value=$i readonly size="12">
    <br/>
    <select title = $i name = $i MULTIPLE size = "16">
    $for j in cog[i]:
      <option>$j[0]|$j[2]</option>
    </select>
    </td>
  </tr>
  <input type="submit" name="sr" value="Segment Recruitment">
  <input type="submit" name="cf" value="Converage Frequency">
  $#<input type="submit" name="st" value="Similarity Tree">
  </form>
  </table>
  
<hr/>
$if image:
  <img src="$image" alt="" width="800" height="600">
$else:
  <img src="$path/images/ma_default.png">
</div>